<template>
    <transition name="fade">
  <div class="container">
      <div class="header">
          <a class="left" v-on:click="back()"><img src="../../assets/back.png" ></a>
          <a class="center">消息盒子</a>
      </div>
      <div class="list">
          <div class="item">
              <div class="detail">
                  <div class="img"><img src="../../assets/avatar.jpg"></div>
                  <div class="info">
                      <p class="name">masky</p>
                      <p class="date">2017-9-9 22:22:10</p>
                  </div>
              </div>
              <div class="content">嗨你最近在干嘛</div>
          </div>
      </div>
  </div>
    </transition>
</template>

<script>
export default {
    name: 'favorite',
    data () {
        return {

        }
    },
    methods:{
		back:function ()
		{
			this.$router.back();
		}
    }

}
</script>

<style scoped>
    .list{
        margin-top: 60px;
    }
    .item{
        position: relative;
        border-bottom: 4px solid #f4f4f4;
    }
    .item .detail{
        position: relative;
        border-bottom: 1px dashed #eeee;
        height:50px;
        padding: 10px;
    }
    .item .info{

        margin-left: 40px;
    }
    .item .name{
        font-size: 0.8rem;
    }
    .item .date{
        color: #999;
        font-size: 0.7rem;
    }
    .item .img{
       position: absolute;
        width: 30px;
        height: 30px;

        border-radius: 50%;
        overflow: hidden;
    }
    .item .img img{
        height: 100%;
    }
    .item .content{
        padding: 10px;
        overflow: hidden;
    }

</style>
